﻿<%@ WebHandler Language="C#" Class="piece_get2" %>

using System;
using System.Web;

public class piece_get2 : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        string uid = context.Request["uid"].ToString();
        TCMSPiece oPiece = new TCMSPiece(uid);
        oPiece.Select();

        context.Response.ContentType = "text/plain";
        context.Response.Write(oPiece.PieceContent);
        context.Response.End();
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}